#!/usr/bin/python
import xmlrpcclient
import sys

if __name__ == "__main__":
  if len(sys.argv)!=2:
    exit(1)
  p = xmlrpcclient.printer()
  try:
     fd=open(sys.argv[1],"r")
  except:
    print "could not open %s" % sys.argv[1]
    exit(1)
  for i in fd.readlines():
    print "adding %s" % i
    p.addFeed(i)
